#@layout()
#define main()
<h1>会员管理&nbsp;&nbsp;
    <a href="/readers/add">创建会员</a>
</h1>
#include("_search.html")
<div class="table_box">
    <table class="list">
        <tbody>
        <tr>
            <th width="4%" style="text-align:center;">id</th>
            <th width="10%" style="text-align:center;">会员号</th>
            <th width="35%" style="text-align:center;">会员姓名</th>
            <th width="10%" style="text-align:center;">性别</th>
            <th width="15%" style="text-align:center;">电话</th>
            <th width="35%" style="text-align:center;">操作</th>
        </tr>

        #for(x : readerPage.getList())
        <tr>
            <td style="text-align:center;">#(x.id)</td>
            <td style="text-align:center;">#(x.readerno)</td>
            <td style="text-align:center;">#(x.readername)</td>
            <td style="text-align:center;">#(x.sex==1?"男":"女")</td>
            <td style="text-align:center;">#(x.tel)</td>
            <td style="text-align:center;">
                &nbsp;&nbsp;<a href="/readers/delete/#(x.id)">删除</a>
                &nbsp;&nbsp;<a href="/readers/edit/#(x.id)">修改</a>
            </td>
        </tr>
        #end
        </tbody>
    </table>
    #@paginate(readerPage.pageNumber, readerPage.totalPage, "/readers/")
</div>
#end